////////////////////////////
//	File:		BitmapFont.h
//	Class:		SGP
//	Updated:	3/6/2012
//	Author:		Roc Myers
////////////////////////////
#pragma once
#include <Windows.h>

class CBitmapFont
{
private:
	// For cell algorithm
	int m_nCharWidth;
	int m_nPrevWidth;
	int m_nCharHeight;
	int m_nRows;
	int m_nCols;

	// For drawing
	int m_nImageID;

	// Char info arrays
	RECT CharRects[256];
	int YOffsets[256];
	int XOffsets[256];

	// Load Font RECT data
	bool LoadFontData(const char* szFileName);

public:
	CBitmapFont(void);
	~CBitmapFont(void);

	// Setup
	void Initialize(int nFontID, const char* szFileName);

	// Print to the screen
	
	void Print(const char* szText, int nX, int nY, float fScale,int r = 255,int g = 255, int b = 255);

	//Accessors
	int GetCharWidth(void) {return m_nPrevWidth;}
	int GetCharHeight(void) {return m_nCharHeight;}
};

